package com.ruoyi.web.controller.shop.mapper;

import com.ruoyi.common.core.dao.BaseMapper;
import com.ruoyi.common.entity.DO.member.MemberLabelLinkDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IBackShopMemberLabelLinkMapper extends BaseMapper<MemberLabelLinkDO> {

    @Delete("delete from member_label_link where member_label_id=#{labelId}")
    int deleteByLabelId(Long labelId);

    @Select("select distinct member_id from member_label_link where member_label_id=#{labelId}")
    List<Long> searchMemberIdList(Long labelId);
}
